package com.javasm.mb_store_api_final.config.adminLogin.adminuser.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.javasm.mb_store_api_final.config.adminLogin.adminuser.dao.RgAdminUserDao;
import com.javasm.mb_store_api_final.config.adminLogin.adminuser.entity.RgAdminUser;
import com.javasm.mb_store_api_final.config.adminLogin.adminuser.service.RgAdminUserService;
import org.springframework.stereotype.Service;

/**
 * (RgAdminUser)表服务实现类
 *
 * @author makejava
 * @since 2024-07-28 19:38:29
 */
@Service("rgAdminUserService1")
public class RgAdminUserServiceImpl extends ServiceImpl<RgAdminUserDao, RgAdminUser> implements RgAdminUserService {
    @Override
    public RgAdminUser getByPhone(String phone) {
                LambdaQueryWrapper<RgAdminUser> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(RgAdminUser::getPhone,phone);
        RgAdminUser adminUser = getOne(queryWrapper);

        return adminUser;
    }

}

